package com.project.mapper;

import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

/**
 * @author lyl
 * description:用户mapper接口
 */
public interface IUserMapper {
    /**
     * 用户登陆方法
     *
     * @param username 用户名
     * @param password 用户密码
     * @return
     */
    @Select("select * from t_user where u_username =#{username} and u_password = #{password}")
    @ResultMap("userMap")
    UserBean login(@Param("username") String username, @Param("password") String password);
}
